@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

@mixin scrollBar {
  &::-webkit-scrollbar-track-piece {
    background: #d3dce6;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
  }
}

@mixin relative {
  position: relative;
  width: 100%;
  height: 100%;
}

// 类似账号页面的表单样式
@mixin formStyle {
  margin-left: 50px;

  .el-form {
    .el-form-item__label {
      text-align: left;
      min-width: 70px;
    }

    >.el-form-item {
      // 留出间隙给表单错误提示
      margin-bottom: 18px !important;
      color: $fontColor;
    }
  }

}

// 九宫格
@mixin nineStyle($num:3) {
  display: grid;
  grid-template-columns: repeat($num, 1fr);
  grid-gap: 10px;
  // margin: auto;
}

// 表格头部组件样式
@mixin headerBarStyle {
  display: flex;
  border: 1px solid $headerBarBorder;
  border-radius: 6px;
  padding: 10px 20px;
  height: 62px;
  background: rgba(227, 239, 255, 0.3);

  .header-left {}

  .header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;

    .setting-icon {
      cursor: pointer;
      font-size: 18px;
      font-weight: bold;
      color: #909399;
    }

    .setting-icon:hover {
      color: #409eff;
    }

    .el-button {
      margin-left: 10px;
    }
  }

  .el-date-editor.el-input,
  .el-date-editor.el-input__inner {
    width: 240px;
  }

  .el-date-editor .el-range-separator {
    line-height: 26px;
  }
}

// 侧边栏抽屉式弹框样式
@mixin DrawerRtl {
  .el-drawer__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 70px;
    padding: 20px;
    margin: 0;
    color: #333333;
    background-color: #f2f8fe;

    span {
      font-size: 20px;
    }
  }

  .el-drawer__body {
    flex: 1;
    overflow: auto;
    padding-top: 20px;
    position: relative;

    .drawer-content {
      display: flex;
      flex: 1;
      flex-direction: column;
      height: 100%;
      font-size: 14px;
      color: #333333;
      // box-sizing: border-box;

      .drawer-foot {
        display: flex;
        padding: 25px 50px;
      }
    }
  }
}